Integrand size = 25, antiderivative size = 268 \[ \int \frac {(e \csc (c+d x))^{5/2}}{(a+a \sec (c+d x))^2} \, dx=-\frac {4 e^2 \cot (c+d x) \sqrt {e \csc (c+d x)}}{231 a^2 d}+\frac {16 e^2 \cot (c+d x) \csc ^2(c+d x) \sqrt {e \csc (c+d x)}}{77 a^2 d}-\frac {2 e^2 \cot ^3(c+d x) \csc ^2(c+d x) \sqrt {e \csc (c+d x)}}{11 a^2 d}-\frac {4 e^2 \csc ^3(c+d x) \sqrt {e \csc (c+d x)}}{7 a^2 d}-\frac {2 e^2 \cot (c+d x) \csc ^4(c+d x) \sqrt {e \csc (c+d x)}}{11 a^2 d}+\frac {4 e^2 \csc ^5(c+d x) \sqrt {e \csc (c+d x)}}{11 a^2 d}+\frac {4 e^2 \sqrt {e \csc (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right ),2\right ) \sqrt {\sin (c+d x)}}{231 a^2 d} \]
[Out]
Time = 0.60 (sec) , antiderivative size = 268, normalized size of antiderivative = 1.00, number of steps used = 16, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.360, Rules used = {3963, 3957, 2954, 2952, 2647, 2716, 2720, 2644, 14} \[ \int \frac {(e \csc (c+d x))^{5/2}}{(a+a \sec (c+d x))^2} \, dx=\frac {4 e^2 \csc ^5(c+d x) \sqrt {e \csc (c+d x)}}{11 a^2 d}-\frac {4 e^2 \csc ^3(c+d x) \sqrt {e \csc (c+d x)}}{7 a^2 d}-\frac {2 e^2 \cot ^3(c+d x) \csc ^2(c+d x) \sqrt {e \csc (c+d x)}}{11 a^2 d}-\frac {2 e^2 \cot (c+d x) \csc ^4(c+d x) \sqrt {e \csc (c+d x)}}{11 a^2 d}+\frac {16 e^2 \cot (c+d x) \csc ^2(c+d x) \sqrt {e \csc (c+d x)}}{77 a^2 d}-\frac {4 e^2 \cot (c+d x) \sqrt {e \csc (c+d x)}}{231 a^2 d}+\frac {4 e^2 \sqrt {\sin (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right ),2\right ) \sqrt {e \csc (c+d x)}}{231 a^2 d} \]
[In]
[Out]
Rule 14
Rule 2644
Rule 2647
Rule 2716
Rule 2720
Rule 2952
Rule 2954
Rule 3957
Rule 3963
Rubi steps \begin{align*} \text {integral}& = \left (e^2 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}\right ) \int \frac {1}{(a+a \sec (c+d x))^2 \sin ^{\frac {5}{2}}(c+d x)} \, dx \\ & = \left (e^2 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}\right ) \int \frac {\cos ^2(c+d x)}{(-a-a \cos (c+d x))^2 \sin ^{\frac {5}{2}}(c+d x)} \, dx \\ & = \frac {\left (e^2 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}\right ) \int \frac {\cos ^2(c+d x) (-a+a \cos (c+d x))^2}{\sin ^{\frac {13}{2}}(c+d x)} \, dx}{a^4} \\ & = \frac {\left (e^2 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}\right ) \int \left (\frac {a^2 \cos ^2(c+d x)}{\sin ^{\frac {13}{2}}(c+d x)}-\frac {2 a^2 \cos ^3(c+d x)}{\sin ^{\frac {13}{2}}(c+d x)}+\frac {a^2 \cos ^4(c+d x)}{\sin ^{\frac {13}{2}}(c+d x)}\right ) \, dx}{a^4} \\ & = \frac {\left (e^2 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}\right ) \int \frac {\cos ^2(c+d x)}{\sin ^{\frac {13}{2}}(c+d x)} \, dx}{a^2}+\frac {\left (e^2 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}\right ) \int \frac {\cos ^4(c+d x)}{\sin ^{\frac {13}{2}}(c+d x)} \, dx}{a^2}-\frac {\left (2 e^2 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}\right ) \int \frac {\cos ^3(c+d x)}{\sin ^{\frac {13}{2}}(c+d x)} \, dx}{a^2} \\ & = -\frac {2 e^2 \cot ^3(c+d x) \csc ^2(c+d x) \sqrt {e \csc (c+d x)}}{11 a^2 d}-\frac {2 e^2 \cot (c+d x) \csc ^4(c+d x) \sqrt {e \csc (c+d x)}}{11 a^2 d}-\frac {\left (2 e^2 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}\right ) \int \frac {1}{\sin ^{\frac {9}{2}}(c+d x)} \, dx}{11 a^2}-\frac {\left (6 e^2 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}\right ) \int \frac {\cos ^2(c+d x)}{\sin ^{\frac {9}{2}}(c+d x)} \, dx}{11 a^2}-\frac {\left (2 e^2 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}\right ) \text {Subst}\left (\int \frac {1-x^2}{x^{13/2}} \, dx,x,\sin (c+d x)\right )}{a^2 d} \\ & = \frac {16 e^2 \cot (c+d x) \csc ^2(c+d x) \sqrt {e \csc (c+d x)}}{77 a^2 d}-\frac {2 e^2 \cot ^3(c+d x) \csc ^2(c+d x) \sqrt {e \csc (c+d x)}}{11 a^2 d}-\frac {2 e^2 \cot (c+d x) \csc ^4(c+d x) \sqrt {e \csc (c+d x)}}{11 a^2 d}-\frac {\left (10 e^2 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}\right ) \int \frac {1}{\sin ^{\frac {5}{2}}(c+d x)} \, dx}{77 a^2}+\frac {\left (12 e^2 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}\right ) \int \frac {1}{\sin ^{\frac {5}{2}}(c+d x)} \, dx}{77 a^2}-\frac {\left (2 e^2 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}\right ) \text {Subst}\left (\int \left (\frac {1}{x^{13/2}}-\frac {1}{x^{9/2}}\right ) \, dx,x,\sin (c+d x)\right )}{a^2 d} \\ & = -\frac {4 e^2 \cot (c+d x) \sqrt {e \csc (c+d x)}}{231 a^2 d}+\frac {16 e^2 \cot (c+d x) \csc ^2(c+d x) \sqrt {e \csc (c+d x)}}{77 a^2 d}-\frac {2 e^2 \cot ^3(c+d x) \csc ^2(c+d x) \sqrt {e \csc (c+d x)}}{11 a^2 d}-\frac {4 e^2 \csc ^3(c+d x) \sqrt {e \csc (c+d x)}}{7 a^2 d}-\frac {2 e^2 \cot (c+d x) \csc ^4(c+d x) \sqrt {e \csc (c+d x)}}{11 a^2 d}+\frac {4 e^2 \csc ^5(c+d x) \sqrt {e \csc (c+d x)}}{11 a^2 d}-\frac {\left (10 e^2 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}\right ) \int \frac {1}{\sqrt {\sin (c+d x)}} \, dx}{231 a^2}+\frac {\left (4 e^2 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}\right ) \int \frac {1}{\sqrt {\sin (c+d x)}} \, dx}{77 a^2} \\ & = -\frac {4 e^2 \cot (c+d x) \sqrt {e \csc (c+d x)}}{231 a^2 d}+\frac {16 e^2 \cot (c+d x) \csc ^2(c+d x) \sqrt {e \csc (c+d x)}}{77 a^2 d}-\frac {2 e^2 \cot ^3(c+d x) \csc ^2(c+d x) \sqrt {e \csc (c+d x)}}{11 a^2 d}-\frac {4 e^2 \csc ^3(c+d x) \sqrt {e \csc (c+d x)}}{7 a^2 d}-\frac {2 e^2 \cot (c+d x) \csc ^4(c+d x) \sqrt {e \csc (c+d x)}}{11 a^2 d}+\frac {4 e^2 \csc ^5(c+d x) \sqrt {e \csc (c+d x)}}{11 a^2 d}+\frac {4 e^2 \sqrt {e \csc (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right ),2\right ) \sqrt {\sin (c+d x)}}{231 a^2 d} \\ \end{align*}
Time = 2.11 (sec) , antiderivative size = 115, normalized size of antiderivative = 0.43 \[ \int \frac {(e \csc (c+d x))^{5/2}}{(a+a \sec (c+d x))^2} \, dx=-\frac {e^3 \csc ^2\left (\frac {1}{2} (c+d x)\right ) \sec ^6\left (\frac {1}{2} (c+d x)\right ) \left (52+97 \cos (c+d x)+4 \cos (2 (c+d x))+\cos (3 (c+d x))+\csc ^4\left (\frac {1}{2} (c+d x)\right ) \operatorname {EllipticF}\left (\frac {1}{4} (-2 c+\pi -2 d x),2\right ) \sin ^{\frac {11}{2}}(c+d x)\right )}{3696 a^2 d \sqrt {e \csc (c+d x)}} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 9.06 (sec) , antiderivative size = 382, normalized size of antiderivative = 1.43
method | result | size |
default | \(\frac {\sqrt {2}\, {\left (\frac {e \left (\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )+\sin \left (d x +c \right )\right )}{1-\cos \left (d x +c \right )}\right )}^{\frac {5}{2}} \left (1-\cos \left (d x +c \right )\right )^{2} \left (21 \left (1-\cos \left (d x +c \right )\right )^{8} \csc \left (d x +c \right )^{8}+16 i \sqrt {-i \left (i-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right )}\, \sqrt {2}\, \sqrt {-i \left (i+\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )}\, \sqrt {i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right )}\, \operatorname {EllipticF}\left (\sqrt {-i \left (i-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right )}, \frac {\sqrt {2}}{2}\right ) \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right )-6 \left (1-\cos \left (d x +c \right )\right )^{6} \csc \left (d x +c \right )^{6}-136 \left (1-\cos \left (d x +c \right )\right )^{4} \csc \left (d x +c \right )^{4}-186 \left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-77\right ) \csc \left (d x +c \right )^{2}}{1848 a^{2} d \left (\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}+1\right )^{2} \sqrt {\left (1-\cos \left (d x +c \right )\right ) \left (\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}+1\right ) \csc \left (d x +c \right )}\, \sqrt {\left (1-\cos \left (d x +c \right )\right )^{3} \csc \left (d x +c \right )^{3}+\csc \left (d x +c \right )-\cot \left (d x +c \right )}}\) | \(382\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.11 (sec) , antiderivative size = 220, normalized size of antiderivative = 0.82 \[ \int \frac {(e \csc (c+d x))^{5/2}}{(a+a \sec (c+d x))^2} \, dx=-\frac {2 \, {\left ({\left (i \, e^{2} \cos \left (d x + c\right )^{2} + 2 i \, e^{2} \cos \left (d x + c\right ) + i \, e^{2}\right )} \sqrt {2 i \, e} \sin \left (d x + c\right ) {\rm weierstrassPInverse}\left (4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + {\left (-i \, e^{2} \cos \left (d x + c\right )^{2} - 2 i \, e^{2} \cos \left (d x + c\right ) - i \, e^{2}\right )} \sqrt {-2 i \, e} \sin \left (d x + c\right ) {\rm weierstrassPInverse}\left (4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) + {\left (2 \, e^{2} \cos \left (d x + c\right )^{3} + 4 \, e^{2} \cos \left (d x + c\right )^{2} + 47 \, e^{2} \cos \left (d x + c\right ) + 24 \, e^{2}\right )} \sqrt {\frac {e}{\sin \left (d x + c\right )}}\right )}}{231 \, {\left (a^{2} d \cos \left (d x + c\right )^{2} + 2 \, a^{2} d \cos \left (d x + c\right ) + a^{2} d\right )} \sin \left (d x + c\right )} \]
[In]
[Out]
Timed out. \[ \int \frac {(e \csc (c+d x))^{5/2}}{(a+a \sec (c+d x))^2} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \frac {(e \csc (c+d x))^{5/2}}{(a+a \sec (c+d x))^2} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {(e \csc (c+d x))^{5/2}}{(a+a \sec (c+d x))^2} \, dx=\int { \frac {\left (e \csc \left (d x + c\right )\right )^{\frac {5}{2}}}{{\left (a \sec \left (d x + c\right ) + a\right )}^{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(e \csc (c+d x))^{5/2}}{(a+a \sec (c+d x))^2} \, dx=\int \frac {{\cos \left (c+d\,x\right )}^2\,{\left (\frac {e}{\sin \left (c+d\,x\right )}\right )}^{5/2}}{a^2\,{\left (\cos \left (c+d\,x\right )+1\right )}^2} \,d x \]
[In]
[Out]